﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dijiang.Errors
{
    public class WrongTypeError : DError
    {
        public WrongTypeError(Type expect, Type got) : base($"wrong type. Expect {expect.Name}, got {got.Name}")
        {
        }

        public WrongTypeError(Type expect) : base($"wrong type. Expect {expect.Name}") { }
    }
}
